<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <p:panel>
            <h:outputText value="Ajouter un modele RDP :"/></p:panel>

        <f:view>
            <h:form>
                <h:panelGrid columns="2" style="margin-bottom:30px">

                    <h:outputLabel value="idm:" for="idm" />
                    <p:inputText id="idm" value="#{ajoutMBean.idm}" title="idm" />
                    <h:outputText value="Date: " />  
                    <p:calendar value="#{ajoutMBean.datec}" id="datec" showOn="button" />  
                    <h:outputLabel value="matricepre" for="matricepre" />
                    <p:inputText id="matricepre" value="#{ajoutMBean.matricepre}" title="matricepre" />
                    <h:outputLabel value="matricepost" for="matricepost" />
                    <p:inputText id="matricepost" value="#{ajoutMBean.matricepost}" title="matricepost" /> 
                    <h:outputLabel value="Login:" for="Login" />
                    <p:inputText id="login" value="#{ajoutMBean.login}" title="login" /> 
                  
                </h:panelGrid>
                <p:separator />  

                <p:commandButton id="subButton" value="valider" action="#{ajoutMBean.saveModeleRDP}"  ajax="false"/>    
                  <p:commandButton id="back" value="Back" action="#{modelerdpMBean.list}" ajax="false"/> 
            </h:form>
        </f:view>
    </h:body>
</html>

